# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdnet
pkgver=1.14
pkgrel=0
pkgdesc="simplified, portable interface to several low-level networking routines"
url="https://github.com/dugsong/libdnet"
arch="all"
license="BSD-3-Clause"
makedepends="linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/dugsong/libdnet/archive/libdnet-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgname-$pkgver

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--without-python
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
ce8d95228f5175e4d9a8ff71bb99eb1ccc3ccd599a85dd07adbfd9842fc54066235d362c8060828fb3ba8129d0e1e8e071e93d60d69c6d03be310c80e61cea93  libdnet-1.14.tar.gz
"
